import {createRouter,createWebHistory} from 'vue-router';
//定义路由
const routes=[
    {path:"/",name:"Index",title:"首页",component:()=>import('../views/index.vue')},
    {path:"/Mall",name:"Mall",title:"商品",component:()=>import('../views/Mall.vue')}, 
    {path:"/post",name:"post",title:"文章",component:()=>import('../views/post.vue')},  
];

const router=createRouter({
    history:createWebHistory(),
    routes:routes,
});
export default router